import { reqbannerlist } from "../../http/api"
const state = {
    list:[]
}
const getters = {
    list(state){
        return state.list
    }
}
const mutations = {
    changeList(state,list){
        state.list = list
    }
}
const actions = {
    async reqList(context){
        let res = await reqbannerlist()
        if(res.data.code==200){
            context.commit("changeList",res.data.list)
        }
    }
}
export default {
    state,
    getters,
    mutations,
    actions,
    namespaced: true
}